import UseEffectExample from "./UseEffectExample";
import { useState } from "react";
import { Button } from "antd";

function Index() {
  const [fatherCount, setFatherCount] = useState<number>(0);

  return (
    <>
      <Button onClick={() => setFatherCount(fatherCount + 1)}>点击fatherCount</Button>
      <hr />
      <UseEffectExample fatherCount={fatherCount} />
    </>
  );
}

export default Index;
